package com.xian.manage.mapper;

import java.util.List;
import com.xian.manage.domain.Poetry;

/**
 * 诗词精选Mapper接口
 * 
 * @author Hanys
 * @date 2025-04-09
 */
public interface PoetryMapper 
{
    /**
     * 查询诗词精选
     * 
     * @param id 诗词精选主键
     * @return 诗词精选
     */
    public Poetry selectPoetryById(Long id);

    /**
     * 查询诗词精选列表
     * 
     * @param poetry 诗词精选
     * @return 诗词精选集合
     */
    public List<Poetry> selectPoetryList(Poetry poetry);

    /**
     * 新增诗词精选
     * 
     * @param poetry 诗词精选
     * @return 结果
     */
    public int insertPoetry(Poetry poetry);

    /**
     * 修改诗词精选
     * 
     * @param poetry 诗词精选
     * @return 结果
     */
    public int updatePoetry(Poetry poetry);

    /**
     * 删除诗词精选
     * 
     * @param id 诗词精选主键
     * @return 结果
     */
    public int deletePoetryById(Long id);

    /**
     * 批量删除诗词精选
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePoetryByIds(Long[] ids);
}
